/**
 * 
 */
package com.nip.bbdicforandroid.uis.activities;

import java.io.IOException;

import com.nip.bbdicforandroid.utilities.AssetsUtilities;
import com.nip.bbdicforandroid.utilities.StorageUltilities;
import com.nip.bbdictforandroid.R;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.os.Environment;

/**
 * @author ThangNM
 * 
 */
public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		if (StorageUltilities.isSDCardAvailable()) {
			try {
				AssetsUtilities.copyFilesAssets(getAssets(),
						Environment.getExternalStorageDirectory());
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
}
